package com.jt.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 简单模式配置消息队列
 **/
@Configuration
public class RabbitmqConfig {

    public static final String name = "LIUSHUHONG";

    @Bean
    public Queue queue() {
        //创建一个队列队列，并指定队列的名字
        return new Queue(name, true);
    }


}
